import json
import os

def load_config(config_file='config.json'):
    config_path = os.path.join(os.path.dirname(__file__), config_file)
    with open(config_path, 'r', encoding='utf-8') as file:
        config = json.load(file)
    return config

# 示例用法
config = load_config()
print(config)